package com.tdrc.shop.service;

import com.tdrc.shop.beans.Good;
import com.tdrc.shop.beans.GoodOrder;

public interface IGoodService {
    void addGoodOrder(GoodOrder goodOrder);

    int updateGoodInfo(Good good);

    Good getGoodByGoodId(Integer goodId);

    boolean seckilByRedisLock(Integer goodId,Integer quantity,Integer userId) throws Exception;

    boolean seckilByZookeeper(Integer goodId, Integer quantity, Integer userId) throws Exception;

}
